﻿// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using NSQL.Expressions;
using NSQL.Statements.SelectStatements;

namespace NSQL.Extensions
{
    public static class ValueExpressionExtenssions
    {
        public static NullExpression IsNull(this IValueExpression expression)
        {
            return new NullExpression(expression);
        }
        public static NotNullExpression IsNotNull(this IValueExpression expression)
        {
            return new NotNullExpression(expression);
        }

        public static SelectElement As(this IValueExpression expression, string alias)
        {
            return new SelectElement(expression, alias);
        }
    }
}